#ifndef COMMUNICATE_H
#define COMMUNICATE_H
#include<sys/types.h>
#include "types.h"

typedef struct {
	int connfd;
	float* data;
	size_t len;
}upload_arg_t;

int upload_category(int connfd, const float* data, size_t len);
void upload_category_pthread(upload_arg_t* arg);
int create_communication(char* ip);
int close_communication(int connfd);
#endif